package Lab1;

public class Main { 
    public static void main(String[] argv) { 

    	String localhost = "127.0.0.1";
    	//String host = "130.235.229.15";
    	String host = "130.235.236.124";
    	
        final int regulPriority = 8; 
        final int refGenPriority = 6; 
        final int plotterPriority = 7; 
        RegulMon regulMon = new RegulMon();
        
        ReferenceGenerator refgen = new ReferenceGenerator(refGenPriority); 
        Regul regul = new Regul(regulPriority,regulMon);
        TCPThread tcpThread = new TCPThread(localhost, 4444, regulMon);
        OpCom opcom = new OpCom(plotterPriority); 

        regul.setOpCom(opcom); 
        regul.setRefGen(refgen); 
        opcom.setRegul(regul); 

        opcom.initializeGUI(); 

        tcpThread.start();
        refgen.start(); 
        opcom.start(); 
        regul.start(); 
    } 
} 
